<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Tim kiem</title>
<!--#include file="..\CheckSession.inc"-->
<!--#include file="..\jvFunction.inc"-->
<!--#include file=..\funTab.inc-->
</head>
<%
bchon=Request("bchon")
%>
<script language=javascript>
function TxtSoden_onkeyup(str){
	Noidung.TxtDenso.value=Noidung.TxtSoden.value
}
function TxtNgayBDXL_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtNgayBDXL.value=editdate(trim(str))
}
}
function TxtHanXuLy_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtHanXuLy.value=editdate(trim(str))
}
}
function TxtNgayhoanthanh_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtNgayhoanthanh.value=editdate(trim(str))
}
}
function OK(){
	bsoden=Noidung.TxtSoden.value;
	bdenso=Noidung.TxtDenso.value;
	bnbdxl=Noidung.TxtNgayBDXL.value;
	bhxl=Noidung.TxtHanXuLy.value;
	bnht=Noidung.TxtNgayhoanthanh.value;
	bskh=Noidung.TxtSKH.value;
	bdv=Noidung.cboDonVi.value;
	bty=Noidung.TxtTrichyeu.value;
	bttxl=Noidung.cbohoanthanh.value;
	Noidung.target="right";
	Noidung.action="frmtdxlvb.asp?bsoden="+bsoden+"&bdenso="+bdenso+"&bnbdxl="+bnbdxl+"&bhxl="+bhxl+"&bnht="+bnht+"&bskh="+bskh+"&bdv="+bdv+"&bty="+bty+"&bcomm=search"+"&bchon="+"<%=bchon%>"+"&bttxl="+bttxl;
	Noidung.submit();
	window.close();
}
</script>
<body style="font-family: Times New Roman" topmargin=0 leftmargin=0 bgcolor=#F8F9D9>
<form method="post" name="Noidung">
	<table width="100%" bgColor="#BDD5D0" border="0" borderColor="#111111" cellSpacing="0" style="BORDER-BOTTOM-COLOR: #c0c0c0; BORDER-BOTTOM-STYLE: solid; BORDER-COLLAPSE: collapse; BORDER-LEFT-COLOR: #c0c0c0; BORDER-LEFT-STYLE: solid; BORDER-RIGHT-COLOR: #c0c0c0; BORDER-RIGHT-STYLE: solid; BORDER-TOP-COLOR: #c0c0c0; BORDER-TOP-STYLE: solid; FONT-SIZE: 12pt" >
      <tr>
        <td align="middle" bgColor="#000080" colSpan="6" width="100%">
        <p align="center"><font color="#ffffff">THÔNG TIN TÌM KIẾM</font></p>
        </td>
      </tr>
      <tr>
        <td width="16%" >Số đến</td>
        <td width="18%"><input name=TxtSoden style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtSoden_onkeyup(this.value)"></td>
		<td width="16%" align=center>===></td>
		<td width="18%"><input name=TxtDenso style="font-family:times new roman;width:100%" size="20"></td>
        <td width="16%" align=center>Năm</td>
		<td width="16%"><input name=TxtNam maxlength=4 style="font-family:times new roman;width:100%; size="20" size="20" value=<%=year(Date())%> ></td>
      </tr>
      <tr>
        <td width="16%" >Ngày đến</td>
        <td width="18%"><input name=TxtTungay style="font-family:times new roman;width:100%" size="20"  maxlength=10 LANGUAGE=javascript onkeyup="return TxtTungay_onkeyup(this.value)"></td>
        <td width="16%" align=center>===></td> 
        <td width="18%"><input name=TxtDenngay style="font-family:times new roman;width:100%" size="20" maxlength=10 LANGUAGE=javascript onkeyup="return TxtDenngay_onkeyup(this.value)"></td>
        <td width="16%"></td>
        <td width="16%"></td>
       </tr> 
	  <%if bchon="all" then%>
	<tr>
		<td width="16%" >Ngày BDXL</td>
		<td width="18%"><input name=TxtNgayBDXL style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayBDXL_onkeyup(this.value)"></td>
		<td width="16%" align="center">Hạn xử lý</td>
		<td width="18%"><input name=TxtHanXuLy style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtHanXuLy_onkeyup(this.value)"></td>
		<td width="16%" align="center">Ngày HT</td>
		<td width="16%" colspan=2><input name=TxtNgayhoanthanh disabled style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayhoanthanh_onkeyup(this.value)"></td>
	  </tr>
	  <%else%>
      <tr>
		<td width="16%" >Ngày BDXL</td>
		<td width="18%"><input name=TxtNgayBDXL style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayBDXL_onkeyup(this.value)"></td>
		<td width="16%" align="center">Hạn xử lý</td>
		<td width="18%"><input name=TxtHanXuLy style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtHanXuLy_onkeyup(this.value)"></td>
		<td width="16%" align="center">Ngày HT</td>
		<td width="16%" colspan=2><input name=TxtNgayhoanthanh style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayhoanthanh_onkeyup(this.value)"></td>
	  </tr>
	  <%end if%>
	  <tr>
        <td width="16%" >Số ký hiệu</td>
		<td width="34%" colspan=2><input name=TxtSKH style="font-family:times new roman;width:100%" size="20"></td>
       <td width="18%" align="center">Đơn vị xử lý</td>
        <td width="32%" colspan=3>
   		<%if Session("ClsFun").LayGiaTriQuyen(Session("Permision"),"F44",2)="1" or Session("IsAdmin") then%>
			<Select name=cboDonVi style="font-family:times new roman;width:100%">
		<%else%>
			<Select name=cboDonVi disabled style="font-family:times new roman;width:100%">
		<%end if%>
        		<option value=""></option>
        		<%
       			sSQL="Select * from DonVi where madonvi like '00%00' and madonvi <> '000000' order by Madonvi"
				Set Rec=server.CreateObject("ADODB.Recordset")
				Rec.CursorType=3
				Rec.CacheSize=5
				Rec.Open sSQL,Conn
				Do While not Rec.EOF
			%>
				<option value=<%=Rec("MaDonvi")%>><% =funTab(Rec("MaDonvi"))%><%=Rec("TENDonVi")%></option>
			<%
					Rec.movenext
				Loop
				Rec.close
				Set Rec=nothing
			%>	
        	</select>
        </td>           
      </tr>   
	  <tr>       
	  <td width="16%" >Trích yếu</td>
        <td width="34%" colspan=2>
        <input name=TxtTrichyeu style="font-family:times new roman;width:100%" size="20"></td>
		<td width="18%">Trạng thái xử lý</td>
		<td width="32%" colspan=3>
		<Select name=cbohoanthanh style="font-family:times new roman;width:100%">
			<option value=""></option>
			<option value="DH">Đúng hạn</option>
			<option value="QH">Quá hạn</option>
			<option value="CXL">Chưa xử lý</option>
		</select>
		</td>
		</tr>
	  </table>
  <table border="0" width="100%" cellSpacing="5">
  <tr>
  <td width="35%"></td>
  <td width="15%"><input name=CmdOK type=button style="font-family:times new roman;width:100%;height=25" value="Tìm kiếm" language=javascript onclick="return OK()"></td>
  <td width="15%"><input style="font-family:times new roman;width:100%;height=25" name=CmdExit type=button value="Đóng" language=javascript onclick="javascript:window.close()"></td>
  <td width="35%"></td>
  </tr>
  </table>
</form>
</body>
</html>